package org.apache.http.examples.client;

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

public class Test {

	public static void main(String[] args) {

		HttpURLConnection connection = null;

		try {

			URL url = new URL(
					"http://svn2.informatique.inetpsa.com/svn/ciq00/Etudes/trunk/ciq_tc_rest_client/src/main/java/com/inetpsa/ciq/tc/model/buildType/BuildTypeRef.java");
			
			//connection.
			
			connection = (HttpURLConnection) url.openConnection();
			connection.connect();
			InputStream is = connection.getInputStream();

			int i;
			while ((i = is.read()) != -1) {
				System.out.println(i);
			}

			is.close();

		} catch (MalformedURLException e1) {
			e1.printStackTrace();
		} catch (IOException e1) {
			e1.printStackTrace();
		} finally {
			if (null != connection) {
				connection.disconnect();
			}
		}
	}
}
